﻿using System;

class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        for (int i = 0; i <n-1; i++)
        {
            string points =new String('.',n-2-i);
            string asterisks = new String('*', i * 2+1);
            Console.Write(points);
            Console.Write(asterisks);
            Console.Write(points);
            Console.WriteLine();
        }
        string tree = new String('.', n - 2);
        Console.Write(tree);
        Console.Write("*");
        Console.Write(tree);
        Console.WriteLine();
    }
}